﻿using Shop.RemoteModel;

namespace Shop.Model.Goods
{
    public class GoodsData
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 商品名
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// Spu
        /// </summary>
        public string GoodsSpu { get; set; }

        /// <summary>
        /// 类目ID
        /// </summary>
        public long CategoryId { get; set; }

        /// <summary>
        /// 商品封面图
        /// </summary>
        public string MainImg { get; set; }

        /// <summary>
        /// 售价(取规格中的最低价格)
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string BrandName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public GoodsStatus Status { get; set; }

        /// <summary>
        /// 应用的物流ID
        /// </summary>
        public long? LogisticsId { get; set; }

        /// <summary>
        /// 是否为虚拟商品
        /// </summary>
        public bool IsVirtual { get; set; }


        /// <summary>
        /// 拥有的SKU数量
        /// </summary>
        public short SkuNum { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentNum { get; set; }

        /// <summary>
        /// 销售数
        /// </summary>
        public int SaleNum { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? PublicTime { get; set; }
        /// <summary>
        /// 下架时间
        /// </summary>
        public DateTime? OffShelfTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}
